package cn.gemiman.daoyi.module.iot.service.userequipmentplace;

import cn.gemiman.daoyi.framework.common.pojo.PageResult;
import cn.gemiman.daoyi.module.iot.controller.admin.userequipmentplace.vo.UserEquipmentPlacePageReqVO;
import cn.gemiman.daoyi.module.iot.controller.admin.userequipmentplace.vo.UserEquipmentPlaceSaveReqVO;
import cn.gemiman.daoyi.module.iot.dal.dataobject.userequipmentplace.UserEquipmentPlaceDO;
import jakarta.validation.Valid;

/**
 * 会员设备场所 Service 接口
 *
 * @author 道一源码
 */
public interface UserEquipmentPlaceService {

    /**
     * 创建会员设备场所
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createUserEquipmentPlace(@Valid UserEquipmentPlaceSaveReqVO createReqVO);

    /**
     * 更新会员设备场所
     *
     * @param updateReqVO 更新信息
     */
    void updateUserEquipmentPlace(@Valid UserEquipmentPlaceSaveReqVO updateReqVO);

    /**
     * 删除会员设备场所
     *
     * @param id 编号
     */
    void deleteUserEquipmentPlace(Long id);

    /**
     * 获得会员设备场所
     *
     * @param id 编号
     * @return 会员设备场所
     */
    UserEquipmentPlaceDO getUserEquipmentPlace(Long id);

    /**
     * 获得会员设备场所分页
     *
     * @param pageReqVO 分页查询
     * @return 会员设备场所分页
     */
    PageResult<UserEquipmentPlaceDO> getUserEquipmentPlacePage(UserEquipmentPlacePageReqVO pageReqVO);

    void deleteUserEquipmentPlace(Long id, Long userId);
}
